<?php
ob_start();
session_start();
include('config.php') ; 

/*$i = 0;

while($i < 10000000 ) {
	$i++;
}
*/
$user = $_POST['naam'];
$pass = $_POST['password'];
echo "<pre>";
var_dump($_POST);
$sql = "SELECT * FROM users WHERE naam='$user' AND password='$pass'";
var_dump($sql);
$result = mysql_query($sql,$conn) or die(mysql_error()) ;
while($row = mysql_fetch_array( $result )) {
echo '<meta http-equiv="refresh" content="1000;URL=index.php" />';
$_SESSION['user'] = $user;
}
echo "</pre>";

?>